import React, {Component} from 'react';
import {connect} from "react-redux";
import {withRouter} from "react-router";

class Logo extends Component<any,any> {
    render() {
        return (
            <div className="logo">{this.props.menuCollapsed?"":"全球新闻发布管理系统"}</div>
        );
    }
}

const mapStateToProps=(state:any)=>{
    return state.app
}

const mapDispatchToProps={}

const WithConnect=connect(mapStateToProps,mapDispatchToProps)(Logo)

export default withRouter(WithConnect)

